
package com.hlkj.pay.app.openapi;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import com.hlkj.framework.common.pojo.CommonResult;
import com.hlkj.pay.vo.order.OpenApiResult;
import com.hlkj.pay.vo.order.req.OrderCommonParamReq;

/**
 * @author HlpayTeam
 * @date 2024/10/09 13:50
 */
public interface IOpenApiAppService<T> {

    /**
     * 参数校验
     * 
     * @param orderCommonParamReq
     * @return
     */
    CommonResult<Void> checkApp(OrderCommonParamReq orderCommonParamReq);
    /**
     * 参数校验
     *
     * @param rechargeConfig
     * @return
     */
    CommonResult<Void> setAppInfo(String appId);
    /**
     * 只过滤appid 不过滤sn
     *
     * @return
     */
    CommonResult<Void> setAppInfoOnly(String appId);
    // /**
    //  * 返回参数
    //  *
    //  * @return
    //  */
    // OpenApiResult<Object> sign(OpenApiResult<Object> openApiResult);
    /**
     * 返回参数
     *
     * @return
     */
    OpenApiResult sign(OpenApiResult commonResult);
    /**
     * 返回参数
     *
     * @return
     */
    OpenApiResult sign(CommonResult commonResult);
}
